/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年11月13日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package builder;

/**
 * @Type CatchModelWithBuilder
 * @Desc
 * @author 52489
 * @date 2019年11月13日
 * @Version V1.0
 */
public class CatchModelWithBuilder {
    protected String catchHead;
    protected String cathBody;

    public String getCatchHead() {
        return catchHead;
    }

    public void setCatchHead(String catchHead) {
        this.catchHead = catchHead;
    }

    public String getCathBody() {
        return cathBody;
    }

    public void setCathBody(String cathBody) {
        this.cathBody = cathBody;
    }

    /**
     * @param catchHead
     * @param cathBody
     */
    public CatchModelWithBuilder(String catchHead, String cathBody) {
        super();
        this.catchHead = catchHead;
        this.cathBody = cathBody;
    }

    public static class CatchModelBuilder {
        protected String catchHead;
        protected String cathBody;

        public CatchModelBuilder setCatchHead(String catchHead) {
            this.catchHead = catchHead;
            return this;
        }

        public CatchModelBuilder setCathBody(String cathBody) {
            this.cathBody = cathBody;
            return this;
        }

        public CatchModelWithBuilder build() {
            return new CatchModelWithBuilder(catchHead, cathBody);
        }

    }

}
